Smush\Core\Png2Jpg\Png2Jpg_Optimization B

Total Complexity 95
Dependencies 10
Dependents 4
Total lines 666
Lines of code 428
Logical lines of code 245
Comment lines 113
Methods 38
Properties 12

Methods 38

Method Rating Maintainability Complexity Lines of code
convert_media_item()
A
43 6 53
get_restore_file_path()
S
51 6 27
convert_size()
S
46 4 41
replace_url_in_content()
S
51 5 25
can_be_converted()
S
56 5 18
get_stats()
S
58 4 16
make_meta()
S
60 4 13
write_file_for_size()
S
52 3 27
get_optimized_sizes_count()
S
62 4 11
should_optimize()
S
65 4 10
get_size_meta()
S
65 4 9
restore()
S
55 2 20
delete_files()
S
70 3 7
fetch_meta()
S
69 3 6
replace_urls_in_content()
S
65 3 9
add_error()
S
68 2 7
get_converted_png_files()
S
72 2 6
get_size_stats()
S
71 2 6
should_optimize_size()
S
66 2 9
get_meta()
S
72 2 6
optimize()
S
71 2 6
reset()
S
74 2 5
save()
S
68 2 7
relative_paths()
S
65 2 9
get_main_jpg_file_name()
S
64 2 9
get_size_jpg_file_name()
S
63 2 10
prepare_converted_png_files()
S
71 2 6
get_errors()
S
82 1 3
delete_data()
S
76 1 4
can_restore()
S
81 1 3
set_converted_png_files()
S
81 1 3
get_sizes_to_convert()
S
81 1 3
copy_size()
S
64 1 10
get_key()
S
81 1 3
is_optimized()
S
80 1 3
should_reoptimize()
S
81 1 3
prepare_size_stats()
S
73 1 5
__construct()
S
64 1 10